package com.yfqy.app.domain.mapper;

import com.yfqy.app.domain.entity.Banner;
import com.yfqy.app.modules.banner.dto.BannerQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BannerMapper {

    int insertSelective(Banner record);

    Banner selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Banner record);

    List<Banner> getAllBanners();

    int count();

    int showOrHideBanner(@Param("id") Long id, @Param("modifiedBy") Long modifiedBy);

    int deleteBanner(@Param("id") Long id);
}